package ca.qc.bdeb.info.pp2.tp2.application;

import org.hibernate.Session;

public class ImageAgentDAO
{
    public static ImageAgent getImageAgent(int idAgent)
    {
        Session session = HibernateUtil.getSessionFactory().getCurrentSession();
        session.beginTransaction();

        ImageAgent i = (ImageAgent) (session.get(ImageAgent.class, idAgent));

        return i;
    }
}
